package com.haoxiaozhang.hxz_app.business;

import com.haoxiaozhang.hxz_app.bean.Login;
import com.haoxiaozhang.hxz_app.config.Config;
import com.haoxiaozhang.hxz_app.net.CommonCallback;
import com.zhy.http.okhttp.OkHttpUtils;

import java.util.List;

public class LoginBusniess {

    public void login(String username, String password, CommonCallback<List<Login>> callback){

        OkHttpUtils
                .post()
                .url(Config.baseURL + "/erpUser/loginValidation")
                .tag(this)
                .addParams("username",username)
                .addParams("password",password)
                .build()
                .execute(callback);

    }
}
